Skip to content

fix: Exclude Readme.md files from file locking in the text app#8284

Merged
juliusknorr merged 7 commits intonextcloud:mainfrom
rikled:main
Mar 4, 2026
Merged

fix: Exclude Readme.md files from file locking in the text app#8284
juliusknorr merged 7 commits intonextcloud:mainfrom
rikled:main

Conversation

@rikled
Copy link
Contributor

@rikled rikled commented Feb 19, 2026

📝 Summary

This PR excludes Readme files from file locking. Without it is almost impossible to delete these files as they are opened as soon as a user visits the directory of the file. This is meant as an intermediate solution until #5597 is implemented.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

@rikled rikled requested a review from juliusknorr February 19, 2026 23:41
@juliusknorr juliusknorr added bug Something isn't working 3. to review labels Feb 25, 2026
Copy link
Collaborator

@silverkszlo silverkszlo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this by adding temporary debug logging and saw the following output in the nextcloud log, so seems to work :)

{"message":"Attempting to lock file","data":{"fileId":"89","fileName":"regular.md"}}
{"message":"Lock result","data":{"fileId":"89","fileName":"regular.md","isLocked":"true"}}

{"message":"Skipping lock for file","data":{"fileId":"86","fileName":"Readme.md","reason":"Readme.md exception"}}

@juliusknorr juliusknorr merged commit 9d30167 into nextcloud:main Mar 4, 2026
63 of 70 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

@JuliaKirschenheuter
Copy link
Contributor

/backport to stable31

@backportbot
Copy link

backportbot bot commented Mar 12, 2026

The backport to stable31 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable31
git pull origin stable31

# Create the new backport branch
git checkout -b backport/8284/stable31

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 8a86356a 6d9d7fbd de24ab74 84434b95 3fff0180 e845b5b3 c99bcaee

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/8284/stable31

Error: Failed to push branch backport/8284/stable31: fatal: could not read Username for 'https://github.com': No such device or address


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@JuliaKirschenheuter JuliaKirschenheuter mentioned this pull request Mar 16, 2026
4 tasks
@mejo-
Copy link
Member

mejo- commented Mar 18, 2026

/backport to stable33

@mejo-
Copy link
Member

mejo- commented Mar 18, 2026

/backport to stable32

@JuliaKirschenheuter
Copy link
Contributor

/backport to stable31

@backportbot
Copy link

backportbot bot commented Mar 18, 2026

The backport to stable31 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable31
git pull origin stable31

# Create the new backport branch
git checkout -b backport/8284/stable31

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 8a86356a 6d9d7fbd de24ab74 84434b95 3fff0180 e845b5b3 c99bcaee

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/8284/stable31

Error: Failed to check for changes with origin/stable31: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@JuliaKirschenheuter
Copy link
Contributor

@mejo- could you please create a manual backport for stable31 too? Thanks a lot!

@mejo-
Copy link
Member

mejo- commented Mar 18, 2026

@mejo- could you please create a manual backport for stable31 too? Thanks a lot!

already happened: #8366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

README.md is almost always locked

5 participants